//
//  BrandData.m
//  TextApplication
//
//  Created by dllo on 16/9/10.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "BrandData.h"
#import "BrandItems.h"
@implementation BrandData

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"items"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            BrandItems *item = [BrandItems modelWithDic:dic];
            [array addObject:item];
        }
        _items = array;
    }
}

@end
